package com.etc.dao;

import com.etc.entity.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * 管理员Dao层
 *
 * @author kl
 */
@Repository(value = "adminDao")
@Mapper
public interface AdminMapper {
    int deleteByPrimaryKey(Integer aid);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(Integer aid);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);

    //根据用户名查找admin
    Admin selectByName(String aname);

    int add(Admin record);
}